<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>学员信息列表</h3>
<table border="1">
    <thead>
    <tr>
        <td>学员编号</td>
        <td>学员姓名</td>
        <td>学员性别</td>
        <td>学员年龄</td>
        <td>家庭住址</td>
        <td>Email</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="tmp" items="${list}">
        <tr>
            <td>${tmp.sid}</td>
            <td><a href="${pageContext.request.contextPath}/student/toUpdate?sid=${tmp.sid}">${tmp.sname}</a></td>
            <td>${tmp.sgender}</td>
            <td>${tmp.sage}</td>
            <td>${tmp.saddress}</td>
            <td>${tmp.semail}</td>
            <td>
                <a href="${pageContext.request.contextPath}/student/del/${tmp.sid}">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
